package com.ibm.law.ui.system;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

import com.ibm.law.ui.system.setup.InstituteSetup;
import com.ibm.law.ui.system.setup.CategorySetup;
import com.ibm.law.ui.system.setup.CategorySetup;
import com.ibm.law.ui.system.setup.ChargeItemSetup;
import com.ibm.law.ui.system.setup.FileTypeSetup;
import com.ibm.law.ui.system.setup.DictionarySetup;
import com.ibm.law.ui.system.setup.SalarySetup;
import com.ibm.law.ui.system.setup.FileTypeSetup2;
import com.ibm.law.ui.system.setup.ChargeItemTable;
import com.ibm.law.ui.system.setup.TemplateSetup;

public class SystemSetupTabPanel extends Composite {
	private Dialog dialog;

	public Dialog getDialog() {
		return dialog;
	}

	public void setDialog(Dialog dialog) {
		this.dialog = dialog;
	}

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public SystemSetupTabPanel(Composite parent, int style) {
		super(parent, style);
		setLayout(new FillLayout(SWT.HORIZONTAL));
		
		TabFolder tabFolder = new TabFolder(this, SWT.NONE);
		
		TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
		tabItem.setText("鉴定机构");
		
		InstituteSetup instituteSetup = new InstituteSetup(tabFolder, SWT.NONE);
		tabItem.setControl(instituteSetup);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		new Label(instituteSetup, SWT.NONE);
		
		TabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem.setText("鉴定类别");
		
		CategorySetup testNestedCategory = new CategorySetup(tabFolder, SWT.NONE);
		tbtmNewItem.setControl(testNestedCategory);
		
		TabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_2.setText("收费项目");
		
		ChargeItemSetup chargeItemSetup = new ChargeItemSetup(tabFolder, SWT.NONE);
		tbtmNewItem_2.setControl(chargeItemSetup);
		
		TabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_1.setText("鉴定模板");
		
		TemplateSetup templateSetup = new TemplateSetup(tabFolder, SWT.NONE);
		tbtmNewItem_1.setControl(templateSetup);
		
		TabItem tbtmNewItem_3 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_3.setText("正副本");
		

		
		TabItem tbtmNewItem_4 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_4.setText("存储设置");
		
		TabItem tbtmNewItem_5 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_5.setText("工资设置");
		
		SalarySetup salarySetup = new SalarySetup(tabFolder, SWT.NONE);
		tbtmNewItem_5.setControl(salarySetup);
		
		TabItem tbtmNewItem_6 = new TabItem(tabFolder, SWT.NONE);
		tbtmNewItem_6.setText("界面维护");
		
		DictionarySetup dictionarySetup = new DictionarySetup(tabFolder, SWT.NONE);
		tbtmNewItem_6.setControl(dictionarySetup);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		new Label(dictionarySetup, SWT.NONE);
		
		TabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);
		tabItem_1.setText("文件类型");
		
		FileTypeSetup2 fileTypeSetup2 = new FileTypeSetup2(tabFolder, SWT.NONE);
		tabItem_1.setControl(fileTypeSetup2);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
